<?php
if( !defined( 'COMPORTEMENTS' ) ): define( 'COMPORTEMENTS', 1 );
if( !defined( 'FILE_ROOT' ) ) include_once( '../../_prerun' );

/**
 * LISTE DES COMPORTEMENTS
 */

final class Comportements
	{
	static public function get( $indice )
		{
		if( stripos( $indice, 'f_code' ) !== false )
			return 'ComportementCoded';
		else
		if( stripos( $indice, 'f_date_modified' ) )
			return 'ComportementDated';
		else
		if( stripos( $indice, 'f_date_created' ) )
			return 'ComportementDated';
		else
		if( stripos( $indice, 'f_order' ) !== false )
			return 'ComportementOrdered';
		else
		if( stripos( $indice, 'f_status' ) !== false )
			return 'ComportementPublished';
		else
		if( stripos( $indice, 'f_is_star' ) !== false )
			return 'ComportementIsStar';
		else
			return null;
		}
	}
endif;
?>